{% if object_list %}
    <ul>
    {% for poll in object_list %}
        <li>{{ poll.question }} <a href="{{poll.id }}">Detail</a></li>
    {% endfor %}
    </ul>
{% else %}
    <p>No polls are available.</p>
{% endif %}

